package com.jiang.mall.mallmember.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jiang.common.to.LoginTo;
import com.jiang.common.to.SocialUser;
import com.jiang.common.utils.PageUtils;
import com.jiang.mall.mallmember.entity.MemberEntity;
import com.jiang.mall.mallmember.exception.PhoneException;
import com.jiang.mall.mallmember.exception.UsernameException;
import com.jiang.mall.mallmember.vo.MemberUserRegisterVo;

import java.util.Map;

/**
 * 会员
 *
 * @author zhangsan
 * @email 2469939264@qq.com
 * @date 2021-03-23 16:50:37
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberUserRegisterVo memberUserRegisterVo);

    void checkPhoneUnique(String phone) throws PhoneException;

    void checkUsernameUnique(String username) throws UsernameException;

    MemberEntity login(LoginTo loginTo);

    MemberEntity login(SocialUser socialUser);
}

